package com.zmx.b2c.order.web.rest;

import com.zmx.b2c.order.api.OrderApi;
import com.zmx.b2c.order.dto.B2COrderDto;
import com.zmx.b2c.order.service.B2COrderService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: b2c订单对内提供接口
 * @ClassName: OrderRest
 * @Author zhaomxr
 * @Date 2021-11-03 11:22
 */
public class OrderRest implements OrderApi {

    @Autowired
    private B2COrderService b2COrderService;

    @Override
    public B2COrderDto getOrderByCode(String orderCode) {
        return b2COrderService.getOrderByCode(orderCode);
    }
}
